﻿@textColor: #333333;
@borderColor: #AAAAAA;
@white: #FFFFFF;
@radius: 4px;

// LESS MIXINS
.active-or-hover() {
  background: #0078a3 url(img/jqueryui/ui-bg_glass_40_0078a3_1x400.png) 50% 50% repeat-x;
  color: @white;
}

/* jQuery UI overrides */
.ui-widget {
  font-family: inherit;
  font-size: inherit;
}

.ui-button-text-icon-secondary .ui-button-text,
.ui-button-text-icons .ui-button-text {
  padding: 0.4em 1.75em 0.4em 1em;
}

.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
  color: inherit;
  text-decoration: none;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
  font-weight: normal;
}

.brand {
  font-size: 20px;
  font-weight: 200;
}

  .brand.ui-menubar-link {
    padding: 0 !important;
  }

  .brand.ui-state-hover {
    background: none;
    color: inherit;
  }

.ui-menubar {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  border-width: 0 0 1px;
  border-color: @textColor;

  .ui-menubar-link {
    padding-bottom: 7px;
    padding-top: 6px;
  }
}

.ui-icon {
  background-image: url(img/jqueryui/ui-icons_222222_256x240.png);
}

/* jQuery UI Extensions */
.ui-well {
  background: url(img/jqueryui/ui-bg_glass_40_ffc73d_1x400.png) repeat-x scroll 50% 50% #FFC73D;
  border: 1px solid #FFB73D;
  border-radius: 6px;
  padding: 10px;
  margin-top: 1em;
  margin-bottom: 1.5em;
}

.active.ui-menubar-item > a,
.ui-nav .active a,
.ui-menubar-item.ui-state-active {
  background: #0078a3 url(img/jqueryui/ui-bg_glass_40_0078a3_1x400.png) 50% 50% repeat-x;
  border: 1px solid #59b4d4;

  .ui-icon {
    background-image: url("img/jqueryui/ui-icons_ffffff_256x240.png");
  }
}

.ui-menubar-fixed-top {
  top: 0;
  position: fixed;
  z-index: 1030;
  width: 980px;
}

.ui-warning {
  color: #C09853;
}

.ui-error {
  color: #B94A48;
}

/* Generic Styles */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-family: inherit;
  font-weight: bold;
  line-height: 20px;
  margin: 10px 0;
  text-rendering: optimizelegibility;
}

h1, h2, h3 {
  line-height: 40px;
}

h3 {
  font-size: 24.5px;
}

h4 {
  font-size: 17.5px;
  border-bottom: 1px solid @textColor;
  padding-bottom: 5px;
}

#menu {
  margin-left: 5px;
}

code, pre {
  border-radius: 3px 3px 3px 3px;
  color: @textColor;
  font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
  font-size: 12px;
  padding: 0 3px 2px;
}

code {
  background-color: #F7F7F9;
  border: 1px solid #E1E1E8;
  color: #DD1144;
  padding: 2px 4px;
  white-space: nowrap;
}

pre {
  background-color: #F5F5F5;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px 4px 4px 4px;
  display: block;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 10px;
  padding: 10px;
  white-space: pre-wrap;
  -ms-word-break: break-all;
  word-break: break-all;
  -ms-word-wrap: break-word;
  word-wrap: break-word;

  code {
    background-color: transparent;
    border: 0 none;
    color: inherit;
    padding: 0;
    white-space: pre-wrap;
  }
}

footer {
  margin-left: 5px;
}

.affix {
  position: fixed;
}

.documentation-affix {
  background: url("img/jqueryui/ui-bg_gloss-wave_25_333333_500x100.png") repeat-x scroll 50% 50% #333333;
  padding: 4px 10px;
  border-radius: 3px;
  margin-left: 15px;
}

.main {
  margin: 40px 5px 0;
}

small {
  font-size: 85%;
}

.secondary-nav {
  float: right !important;
}

.download-btn {
  .ui-button {
    padding: 0;
    color: @textColor;
    margin-left: 80px;
    margin-top: 6px;
    border-radius: 4px;
  }

  .ui-state-active,
  .ui-state-hover {
    .active-or-hover;

    .ui-icon {
      background-image: url(img/jqueryui/ui-icons_ffffff_256x240.png);
    }
  }

  .ui-icon {
    background-image: url(img/jqueryui/ui-icons_222222_256x240.png);
  }
}

ul, ol {
  margin: 0 0 10px 25px;
  padding: 0;
}

li {
  line-height: 20px;
}

.ui-nav {
  margin: 0;

  li {
    list-style: none outside none;
    display: inline-block;
  }
}

/* FORM STYLES */
input, select {
  width: 150px;
}

/* jQuery DataTables Extensions */
.dataTables_scroll {
  border-color: @textColor;
}
